﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="PS001F001.aspx.cs" Inherits="PS001F001" Title="权限管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">

    <script language="javascript" src="../JS/Common.js" type="text/javascript"> </script>

    <script src="../JS/PS/PS001F001.js" type="text/javascript" language="javascript"></script>

    <div class="screenTitle">
        <p>
            用户权限管理：权限管理
        </p>
    </div>
    <table class="tab1" border="0" cellpadding="0" cellspacing="0" style="width: 778px">
        <caption class="cp1">
            权限管理
        </caption>
        <colgroup>
            <col width="60" />
            <col width="135" />
            <col width="100" />
            <col width="135 " />
            <col width="60" />
            <col width="225" />
        </colgroup>
        <tr>
            <th class="th1_txt_l" style="height: 27px">
                权限
            </th>
            <td class="td1_txt_l" style="height: 27px">
                <asp:DropDownList ID="ddlPermission" runat="server" Height="27px" Width="103px">
                    <asp:ListItem Selected="True" Value="0">管理员</asp:ListItem>
                    <asp:ListItem Value="1">系统维护员</asp:ListItem>
                    <asp:ListItem Value="2">送货单录入员</asp:ListItem>
                </asp:DropDownList>
            </td>
            <th class="th1_txt_l" style="height: 27px">
                用户名称
            </th>
            <td class="td1_txt_l" colspan="3" style="height: 27px">
                <asp:TextBox ID="txtCustomName" runat="server" MaxLength="20" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <th class="th1_txt_l">
                备注
            </th>
            <td class="td1_txt_l" colspan="5">
                <asp:TextBox ID="txtNote" runat="server" TextMode="MultiLine" MaxLength="200"
                    Width="580px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table class="tab2" border="0" cellpadding="0" cellspacing="0">
        <colgroup>
            <col width="771" />
        </colgroup>
        <tr>
            <td class="td2_txt_r" style="width: 773px">
                <asp:ImageButton ID="imgAdd" runat="server" ImageUrl="../Images/search.png" ToolTip="添加权限"
                    Width="80" Height="20"  OnClick="imgAdd_Click"  OnClientClick="return Check();"/>
                <asp:ImageButton ID="imgUpdate" runat="server" ImageUrl="../Images/reset.png" ToolTip="修改权限"
                    Width="80" Height="20" OnClick="imgUpdate_Click" OnClientClick="return Check();" Enabled="false" />
                <asp:ImageButton ID="imgReset" runat="server" ImageUrl="../Images/reset.png" ToolTip="重置"
                    Width="80" Height="20" OnClick="imgReset_Click" />
            </td>
        </tr>
    </table>
    <hr />
    <table style="width: 780px">
        <caption class="cp1">
            用户权限一览</caption>
        <tr>
            <td align="right" style="height: 20px">
                显示条数:
                <asp:DropDownList ID="drpShowLine" runat="server" Width="40px" AutoPostBack="true"
                    OnSelectedIndexChanged="drpShowLine_SelectedIndexChanged">
                    <asp:ListItem Selected="true">10</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <table class="tab1" border="0" cellpadding="0" cellspacing="0">
        <colgroup>
            <col width="70" />
            <col width="210" />
            <col width="150" />
            <col width="180" />
            <col width="135" />
        </colgroup>
        <tr>
            <th class="th1_txt_c">
                No
            </th>
            <th class="th1_txt_c">
                用户名称
            </th>
            <th class="th1_txt_c">
                用户权限
            </th>
            <th class="th1_txt_c">
                备注
            </th>
            <th class="th1_txt_c" style="width: 113px">
                操作
            </th>
        </tr>
    </table>
    <asp:GridView ID="gvProductInfo" runat="server" AutoGenerateColumns="False" AllowPaging="True"
        ShowHeader="False" Width="780px" BorderWidth="0px" CellPadding="0" BorderColor="#3366CC"
        OnRowDataBound="gvProductInfo_RowDataBound" OnPageIndexChanging="gvProductInfo_PageIndexChanging"
        OnRowCommand="gvProductInfo_RowCommand">
        <Columns>
            <asp:BoundField DataField="UserID">
                <ItemStyle Width="70px" CssClass="td1_txt_c" />
            </asp:BoundField>
            <asp:BoundField DataField="UserName">
                <ItemStyle Width="210px" CssClass="td1_txt_l" />
            </asp:BoundField>
            <asp:BoundField DataField="PermissionName">
                <ItemStyle Width="150px" CssClass="td1_txt_l" />
            </asp:BoundField>
            <asp:BoundField DataField="Note">
                <ItemStyle CssClass="td1_txt_l" Width="180px" />
            </asp:BoundField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton Text="删除" ID="lnkBtnDelete" runat="server" CommandName="deleteInfo"></asp:LinkButton>
                    <asp:LinkButton Text="修改" ID="lnkBtnModify" runat="server" CommandName="updateInfo"></asp:LinkButton>
                    <asp:LinkButton Text="密码初始化" ID="lnkBtnUpdate" runat="server" CommandName="updatePasswordInfo"></asp:LinkButton>
                    <asp:HiddenField runat="server" ID="hdnVersion" Value='<%# Eval("RowVer") %>' />
                    <asp:HiddenField runat="server" ID="hdCpID" Value='<%# Eval("UserID") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" CssClass="td1_txt_c" />
            </asp:TemplateField>
        </Columns>
        <PagerStyle HorizontalAlign="Center" />
    </asp:GridView>
    <div id="divMsgLabe" runat="server" class="msgInfo">
        <asp:Image ImageUrl="../Images/JalertImages/important.gif" runat="server" Visible="false"
            ID="img" />
    </div>
    <div id="MessageDiv" class="msgInfo">
        <asp:Label ID="lblMsg" runat="server" Visible="false"></asp:Label>
    </div>
    <asp:HiddenField ID="hdnUserID" runat="server" />
    <asp:HiddenField ID="hdnUserName" runat="server" />
    <asp:HiddenField ID="hdnPermissionName" runat="server" />
    <asp:HiddenField ID="hdnPermissionID" runat="server" />
    <asp:HiddenField ID="hdnNote" runat="server" />
    <asp:HiddenField ID="hdnMode" Value="1" runat="server" />
    <asp:HiddenField ID="hdnAddUserID"  runat="server" />
    <asp:HiddenField ID="hdnRowver"  runat="server" />
</asp:Content>
